package com.yc.txx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author 廖老师
 * @since 2023-04-30
 */
public class Lease implements Serializable {

    private static final long serialVersionUID = 1L;

    private Car car;

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车辆ID
     */
    private Integer cid;

    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 开始日期
     */
    private LocalDate beginday;

    /**
     * 借出日期: 2023-01-01,2023-01-02
     */
    private String days;

    /**
     * 金额
     */
    private BigDecimal money;

    /**
     * 状态: 支付,提车,还车
     */
    private String state;

    /**
     * 备注: 车辆是否损坏, 赔偿情况...
     */
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public LocalDate getBeginday() {
        return beginday;
    }

    public void setBeginday(LocalDate beginday) {
        this.beginday = beginday;
    }

    public String getDays() {
        return days;
    }

    public void setDays(String days) {
        this.days = days;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Lease{" +
        "id=" + id +
        ", cid=" + cid +
        ", uid=" + uid +
        ", beginday=" + beginday +
        ", days=" + days +
        ", money=" + money +
        ", state=" + state +
        ", remark=" + remark +
        "}";
    }
}
